//
//  HNoticeViewController.m
//  SSIL
//
//  Created by 余胜民 on 16/5/13.
//  Copyright © 2016年 sanmy. All rights reserved.
//

#import "HNoticeViewController.h"
#import "HNoticeModel.h"


@interface HNoticeViewController ()

@property (nonatomic, strong) NSMutableArray *noticeModelArray;

@end

@implementation HNoticeViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    [self dismissLoadingView];
    [self setLeftBarButtonWithText:nil];
    [self initDataArray];
    //开启常驻线程
    //self.thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];
    //[self.thread start];
}

- (void)showErrorView{
    [super showErrorView];
    [self endTableViewRefreshing];
}
- (void)setupRootView {
    
    [super setupRootView];
    self.title = @"专家咨询";
    self.tableViewType = TableViewStylePlain;
    self.tableView.mj_header.hidden = NO;
    
    WS(ws);
    [self.tableView mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.view.mas_top);
        make.left.mas_equalTo(ws.view.mas_left);
        make.right.mas_equalTo(ws.view.mas_right);
        make.bottom.mas_equalTo(ws.view.mas_bottom);
    }];
//    self.otherAlertView.image = [UIImage imageNamed:@"Communitypage_ask_Empty-status"];
//    self.otherAlertView.text = @"这里空空如也";
//    [self.otherAlertView remakeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(ws.view.left);
//        make.right.equalTo(ws.view.right);
//        make.centerY.equalTo(self.tableView.centerY).offset(-30);
//    }];
    
    [self.tableView.mj_header beginRefreshing];
    
}

- (void)initDataArray{
    
    self.noticeModelArray = [NSMutableArray array];
    
}

@end
